nested vmx: emulate MSR bitmaps
authorDongxiao Xu <dongxiao.xu@intel.com>
Thu, 6 Dec 2012 16:52:50 +0000 (16:52 +0000)
committerDongxiao Xu <dongxiao.xu@intel.com>
Thu, 6 Dec 2012 16:52:50 +0000 (16:52 +0000)
commitc446e4a2cd9b3e9b5e3cda2b860d0cf48e18a2e2
tree28796eb2eb6a6d401a82bb65d541c5dc83fe0e06
parent5d98adc3e5e859ba23f62ca63450f6a60a9c5e2f
nested vmx: emulate MSR bitmaps

In nested vmx virtualization for MSR bitmaps, L0 hypervisor will trap
all the VM exit from L2 guest by disable the MSR_BITMAP feature. When
handling this VM exit, L0 hypervisor judges whether L1 hypervisor uses
MSR_BITMAP feature and the corresponding bit is set to 1. If so, L0
will inject such VM exit into L1 hypervisor; otherwise, L0 will be
responsible for handling this VM exit.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Committed-by: Keir Fraser <keir@xen.org>
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/hvm/vmx/vvmx.h